<template>
  <div>
    <div class="box" @click="del">
      <img :src="dogImgUrl" alt="">
      <p>{{dogName}}</p>
    </div>
  </div>
</template>

<script>
export default {
  props:['dogImgUrl','dogName','index'],
  methods:{
    del(){
      this.$emit('Delete', this.index)
    }
  }
}
</script>

<style>
  img{
    width: 200px;
    height: 200px;
  }
  .box{
    float: left;
    width: 240px;
    height: 240px;
    text-align: center;
  }
</style>